<div class="bigStatus">
<span class="status"><?php echo $this->statusFormatter($this->status['status']) ?></span>
<span class="date">
	<a href="<?php echo $this->baseURL().'/status/status/display/id/'.$this->status['id'].'/' ?>">
		<?php 
				$timeMode = $this->dateFormatter($this->status['publishedTime']);
				switch ($timeMode['mode']) {
				case 'seconds':
					echo ($timeMode['gap'] == 0)?'right now':($timeMode['gap'] == 1)?'1 second ago':$timeMode['gap'].' seconds ago';
					break;
				case 'minutes':
					echo ($timeMode['gap'] == 1)?'1 minute ago':$timeMode['gap'].' minutes ago';
				break;
				case 'hours':
					echo ($timeMode['gap'] == 1)?'about 1 hour ago':'about '.$timeMode['gap'].' hours ago';
				break;
				case 'date':
					echo $timeMode['day'].'/'.$timeMode['month'].'/'.$timeMode['year'].' '.$timeMode['hours'].':'.$timeMode['minutes'];
				break;
			}

			?>
	</a>
</span>

<?php
	//If the user is owner of the status, he can delete it
	if($this->status['user']['id'] == $this->userId) echo '<span class="deleteStatus"><a href="'.$this->baseURL().'/status/status/delete/id/'.$this->status['id'].'/">Delete</a></span>';
?>

<div class="cartouche">
	<a href="<?php echo $this->baseURL().'/status/index/user/pseudo/'.$this->status['user']['pseudo'].'/' ?>">
		<img src="<?php echo $this->avatarBaseURL.$this->status['user']['pseudo'].'.gif' ?>" class="avatarImage" alt="<?php echo $this->status['user']['pseudo'] ?>" width="44px" height="44px"  />
	</a>
<span class="author"><a href="<?php echo $this->baseURL().'/status/index/user/pseudo/'.$this->status['user']['pseudo'].'/' ?>"><?php echo $this->status['user']['pseudo'] ?></a></span>
</div>


</div>